.class public final Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;
.super Lcom/farmis/feedme/abs/AbsDialogFragment;
.source "FeedBackDialogFragment.kt"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$REACTION;
    }
.end annotation


# instance fields
.field private _$_findViewCache:Ljava/util/HashMap;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 23
    invoke-direct {p0}, Lcom/farmis/feedme/abs/AbsDialogFragment;-><init>()V

    const/4 v0, 0x0

    .line 30
    invoke-virtual {p0, v0}, Lcom/farmis/feedme/abs/AbsDialogFragment;->setDismissible(Z)V

    return-void
.end method

.method public static final synthetic access$getDataBundle(Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;Ljava/lang/String;)Landroid/os/Bundle;
    .locals 0

    .line 23
    invoke-direct {p0, p1}, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;->getDataBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object p0

    return-object p0
.end method

.method private final getDataBundle(Ljava/lang/String;)Landroid/os/Bundle;
    .locals 2

    .line 54
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 55
    sget-object v1, Lcom/farmis/feedme/FeedMe;->BUNDLE_FEEDBACK:Ljava/lang/String;

    invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    return-object v0
.end method

.method static bridge synthetic getDataBundle$default(Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;Ljava/lang/String;ILjava/lang/Object;)Landroid/os/Bundle;
    .locals 0

    and-int/lit8 p2, p2, 0x1

    if-eqz p2, :cond_0

    const-string p1, ""

    .line 53
    :cond_0
    invoke-direct {p0, p1}, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;->getDataBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object p0

    return-object p0
.end method


# virtual methods
.method public _$_clearFindViewByIdCache()V
    .locals 1

    iget-object v0, p0, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;->_$_findViewCache:Ljava/util/HashMap;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    :cond_0
    return-void
.end method

.method public onCancel(Landroid/content/DialogInterface;)V
    .locals 5

    .line 60
    invoke-super {p0, p1}, Landroidx/fragment/app/DialogFragment;->onCancel(Landroid/content/DialogInterface;)V

    .line 61
    sget-object p1, Lcom/farmis/feedme/FeedMeMain;->S:Lcom/farmis/feedme/FeedMeMain$S;

    invoke-virtual {p1}, Lcom/farmis/feedme/FeedMeMain$S;->getParentInterface()Lcom/farmis/feedme/java_interfaces/OnReactionInterface;

    move-result-object p1

    if-eqz p1, :cond_1

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    const-string v2, "activity!!"

    invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    sget-object v2, Lcom/farmis/feedme/Conf;->Companion:Lcom/farmis/feedme/Conf$Companion;

    invoke-virtual {v2}, Lcom/farmis/feedme/Conf$Companion;->getIns()Lcom/farmis/feedme/Conf;

    move-result-object v2

    invoke-virtual {v2}, Lcom/farmis/feedme/Conf;->getOneSignalId()Ljava/lang/String;

    move-result-object v2

    sget-object v3, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$REACTION;->DISMISS:Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$REACTION;

    const/4 v4, 0x1

    invoke-static {p0, v1, v4, v1}, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;->getDataBundle$default(Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;Ljava/lang/String;ILjava/lang/Object;)Landroid/os/Bundle;

    move-result-object v1

    invoke-interface {p1, v0, v2, v3, v1}, Lcom/farmis/feedme/java_interfaces/OnReactionInterface;->onFeedBackReaction(Landroid/content/Context;Ljava/lang/String;Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$REACTION;Landroid/os/Bundle;)V

    goto :goto_0

    :cond_0
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v1

    :cond_1
    :goto_0
    return-void
.end method

.method public synthetic onDestroyView()V
    .locals 0

    invoke-super {p0}, Lcom/farmis/feedme/abs/AbsDialogFragment;->onDestroyView()V

    invoke-virtual {p0}, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;->_$_clearFindViewByIdCache()V

    return-void
.end method

.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 3

    const-string v0, "view"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 35
    invoke-super {p0, p1, p2}, Lcom/farmis/feedme/abs/AbsDialogFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 37
    new-instance p1, Lcom/farmis/feedme/views/FeedbackView;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object p2

    const/4 v0, 0x0

    if-eqz p2, :cond_1

    const-string v1, "activity!!"

    invoke-static {p2, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v1, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$onViewCreated$feedBackView$1;

    invoke-direct {v1, p0}, Lcom/farmis/feedme/dialogs/FeedBackDialogFragment$onViewCreated$feedBackView$1;-><init>(Lcom/farmis/feedme/dialogs/FeedBackDialogFragment;)V

    invoke-direct {p1, p2, v1}, Lcom/farmis/feedme/views/FeedbackView;-><init>(Landroid/app/Activity;Lcom/farmis/feedme/views/FeedbackView$FeedBackListener;)V

    .line 48
    new-instance p2, Landroid/view/ViewGroup$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {p2, v1, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 49
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object p2

    if-eqz p2, :cond_0

    const-string v0, "context!!"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-static {p2}, Lcom/farmis/feedme/utils/UtilsKt;->sp(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p2

    invoke-static {}, Lcom/farmis/feedme/TriggersKt;->getKEY_IS_ACTIVE()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    invoke-static {p2, v0, v1}, Lcom/farmis/feedme/utils/UtilsKt;->set(Landroid/content/SharedPreferences;Ljava/lang/String;Ljava/lang/Object;)V

    .line 50
    invoke-virtual {p0, p1}, Lcom/farmis/feedme/abs/AbsDialogFragment;->setCurrentContent(Landroid/view/View;)V

    return-void

    .line 49
    :cond_0
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v0

    .line 37
    :cond_1
    invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V

    throw v0
.end method
